CFLAGS=-g -ggdb -lSDL
CC=gcc
BIN=sdl

all: ${BIN}

sdl: game.o main.o 
	${CC} -o ${BIN} game.o main.o ${CFLAGS}

game.o: game.c
	${CC} -o game.o -c game.c ${CFLAGS}

main.o: main.c
	${CC} -o main.o -c main.c ${CFLAGS}

clean:
	rm -rf *.o
	rm -rf ${BIN}
